package it.univpm.diiga.memorysim.kernel.shared;

import it.univpm.diiga.memorysim.kernel.IMemoryElement;

public class EmptyBlock implements IMemoryElement {
	private int start;
	private int end;
	
	public EmptyBlock(){}
	
	public EmptyBlock(int start,int end){
		this.start = start;
		this.end = end;
	}
	
	public int getStart(){
		return this.start;
	}
	
	public int getEnd(){
		return this.end;
	}
	public void setStart(int base){
		this.start = base;
	}
	
	public void setEnd(int offset){
		this.end = offset;
	}
	
	public int getDimBlock(){
		return this.end-this.start+1;
	}

	@Override
	public boolean isEmpty() {
		return true;
	}
}
